<!-- Author: Moe Kyaw Thu Aung --> 
<!-- Last Modified: 11 Sep 2012 --> 
<?php
if (!isset($_POST['title'])) {
		$title = '';
	} else {
		$title = $_POST['title'];
	}
	if (!isset($_POST['status'])) {
		$status = '';
	} else {
		$status = $_POST['status'];
	}
	if (!isset($_POST['price'])) {
		$price = '';
	} else {
		$price = $_POST['price'];
	}
	if (isset($_SESSION['empty'])) {
		?>
        <script type="text/javascript">alert("Your cart is empty!"); </script>
        <?php
		unset($_SESSION['empty']);
	}
	if (isset($_SESSION['nomore'])) {
		?>
        <script type="text/javascript">alert("You have ordered all available stock of that book!"); </script>
        <?php
		 unset($_SESSION['nomore']);
	}
	if (isset($_SESSION['success'])) {
		?>
        <script type="text/javascript">alert("Your post was added successfully!"); </script>
        <?php
		unset($_SESSION['success']);
	}
	if (isset($_SESSION['order'])) {
		?>
        <script type="text/javascript">alert("You have successfully ordered your books!"); </script>
        <?php
		unset($_SESSION['order']);
	}
?>